package com.homework.search.client;

import com.homework.common.resultVo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "hw-blog")
public interface HwBlogClient {

    @GetMapping("/hw-blog/findPostDTOByPostId")
    R findPostDTOByPostId(@RequestParam("postId") long postId);
}
